home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS in a Box 7
/
BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso
/
Files
/
Hyper
/
T
/
TextImporter1.1.cpt
/
TextImporter1.1
/
background_2736.txt
< prev
next >
Wrap
Text File
|
1987-09-12
|
10KB
|
479 lines
-- background: 2736 from stack: in.1
-- bmap block id: 2371
-- flags: 0000
-- background id: 0
-- name:
----- HyperTalk script -----
-- part 3 (field)
-- low flags: 00
-- high flags: 0007
-- rect: left=1 top=32 right=328 bottom=510
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 4
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: Import Text
-- part 5 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=73 top=1 right=18 bottom=139
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Open...
----- HyperTalk script -----
on mouseUp
Get FileName("TEXT")
if it is empty then
exit mouseUp
else
put it into temp
put it into background field "fname"
end if
open file temp
read from file temp for 32768
put it into infile
if it is empty
then close file temp
close file temp
put infile into background field "Import Text"
end mouseUp
-- part 8 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=2 top=1 right=18 bottom=73
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: New
----- HyperTalk script -----
on mouseUp
put untitled into background field "fname"
put empty into background field "Import Text"
end mouseUp
-- part 9 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=139 top=1 right=18 bottom=200
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Save
----- HyperTalk script -----
on mouseUp
if background field "fname" is "untitled" then
put empty into background field "TextFileName"
show background field "SaveDialogBox"
show background field "TextFileName"
show background button "OK"
show background button "Cancel"
else
put background field "fname" into save
open file save
write background field "Import Text" to file save
close file save
end if
end mouseUp
-- part 10 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=273 top=1 right=18 bottom=333
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Print
----- HyperTalk script -----
on mouseUp
doMenu Print Report...
end mouseUp
-- part 13 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=410 top=0 right=19 bottom=437
-- title width / last selected line: 0
-- icon id / first selected line: 21700 / 21700
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Home
----- HyperTalk script -----
on mouseUp
put empty into background field "Import Text"
doMenu Compact Stack
go home
end mouseUp
-- part 15 (field)
-- low flags: 01
-- high flags: 0001
-- rect: left=2 top=328 right=340 bottom=434
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 4
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: Date
-- part 16 (field)
-- low flags: 01
-- high flags: 0001
-- rect: left=434 top=328 right=340 bottom=510
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 4
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: Time
-- part 17 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=333 top=1 right=18 bottom=390
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Find...
----- HyperTalk script -----
on mouseUp
doMenu Find...
end mouseUp
-- part 18 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=392 top=2 right=22 bottom=411
-- title width / last selected line: 0
-- icon id / first selected line: 19678 / 19678
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: About
----- HyperTalk script -----
on mouseUp
show background field "About..."
show background button "Okay"
if background field "Script" is empty then
exit mouseUp
else
show background button "Script"
show background button "RemoveScript"
end if
end mouseUp
-- part 19 (field)
-- low flags: 81
-- high flags: 0004
-- rect: left=49 top=39 right=320 bottom=446
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 4
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: About...
-- part 20 (button)
-- low flags: 80
-- high flags: A003
-- rect: left=321 top=265 right=289 bottom=401
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Okay
----- HyperTalk script -----
on mouseUp
hide background button "Okay"
hide background button "Script"
hide background button "RemoveScript"
hide background field "About..."
end mouseUp
-- part 21 (field)
-- low flags: 81
-- high flags: 0004
-- rect: left=20 top=118 right=225 bottom=473
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: SaveDialogBox
-- part 28 (field)
-- low flags: 81
-- high flags: 0002
-- rect: left=145 top=311 right=324 bottom=347
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 4
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: Script
-- part 22 (field)
-- low flags: 80
-- high flags: 0002
-- rect: left=24 top=160 right=179 bottom=467
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: TextFileName
-- part 23 (button)
-- low flags: 80
-- high flags: A003
-- rect: left=280 top=189 right=212 bottom=363
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: OK
----- HyperTalk script -----
on mouseUp
if background field "TextFileName" is empty then
exit mouseUp
end if
put background field "TextFileName" into save
open file save
write background field "Import Text" to file save
close file save
put background field "TextFileName" into background field "fname"
hide background button "OK"
hide background button "Cancel"
hide background field "TextFileName"
hide background field "SaveDialogBox"
put empty into background field "TextFileName"
end mouseUp
-- part 24 (button)
-- low flags: 80
-- high flags: A003
-- rect: left=374 top=189 right=212 bottom=461
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Cancel
----- HyperTalk script -----
on mouseUp
hide background button "OK"
hide background button "Cancel"
hide background field "TextFileName"
hide background field "SaveDialogBox"
put empty into background field "TextFileName"
end mouseUp
-- part 27 (button)
-- low flags: 80
-- high flags: A003
-- rect: left=91 top=268 right=291 bottom=165
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Script
----- HyperTalk script -----
on mouseUp
put empty into background field "Import Text"
put background field "Script" into background field "Import Text"
hide background button "Okay"
hide background button "Script"
hide background button "RemoveScript"
hide background field "About..."
end mouseUp
-- part 29 (field)
-- low flags: 01
-- high flags: 0002
-- rect: left=1 top=18 right=33 bottom=510
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: fname
-- part 30 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=199 top=1 right=18 bottom=273
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Save as...
----- HyperTalk script -----
on mouseUp
if background field "fname" is "untitled" then
put empty into background field "TextFileName"
else
put background field "fname" into background field "TextFileName"
end if
show background field "SaveDialogBox"
show background field "TextFileName"
show background button "OK"
show background button "Cancel"
end mouseUp
-- part 31 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=1 top=19 right=33 bottom=257
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: ShowMenuBar
----- HyperTalk script -----
on mouseUp
show menuBar
end mouseUp
-- part 32 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=256 top=19 right=33 bottom=510
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: HideMenuBar
----- HyperTalk script -----
on mouseUp
hide menuBar
end mouseUp
-- part 33 (button)
-- low flags: 80
-- high flags: 2000
-- rect: left=172 top=304 right=316 bottom=307
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: RemoveScript
----- HyperTalk script -----
on mouseUp
put empty into background field "Script"
end mouseUp